package com.whl.cloud.fergn;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.whl.cloud.fergn.fallback.UserCenterFallbackService;
import com.whl.cloud.model.UserInfoResult;

@FeignClient(value = "USER-SERVICE", fallback = UserCenterFallbackService.class)
public interface UserCenter {

	@RequestMapping(value = "/user-info/{id}", method = RequestMethod.GET)
	public UserInfoResult getUserById(@PathVariable(name = "id") String id);

}
